<template>
    <div class="app-button-item">
        <div class="app-button-item-header">
            <div class="app-button-item-title">
                <div class="title">
                    <slot name="title"></slot>
                </div>
                <div class="explain">
                    <slot name="explain"></slot>
                </div>
            </div>
            <div class="app-button-item-switch">
                <slot name="switch"></slot>
                <!-- <el-switch v-model="value" size="small" /> -->
            </div>
        </div>
        <div class="app-button-item-body">
            <slot name="body"></slot>
        </div>
    </div>
</template>

<script setup>

</script>

<style lang="scss" scoped>
.app-button-item {
    width: 508px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    padding: 12px 16px;

    .app-button-item-header {
        display: flex;
        align-items: center;
        justify-content: space-between;

        .app-button-item-title {
            display: flex;
            flex-direction: column;

            .title {
                color: #1d2129;
                font-size: 14px;
            }

            .explain {
                color: #86909c;
                font-size: 12px;
            }
        }
    }

    .app-button-item-body {
        margin-left: 16px;
        // margin-top: 8px;
    }
}
</style>